<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
</head>

<body>
    <div id="app">
        <elem></elem>
    </div>

    <script>
        Vue.component('elem',{
            render:function(createElement){
                // var self=this;
                return createElement('div',[
               
               createElement('h1','主标'),
               createElement('h2','复标')

                ]);
            }
        })
    </script>
    <script>
        var vm=new Vue({
           el:'#app',
           data:{},
           methods:{}
        });
    </script>
</body>

</html>